package com.learnyou.server.xingzuo.dao.repository.service;

import cn.hutool.core.date.DateUnit;
import com.learnyou.server.xingzuo.common.enums.ApiConfigEnum;
import com.learnyou.server.xingzuo.dao.repository.entity.SysOperLog;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 操作日志记录 服务类
 * </p>
 *
 * @author heweifeng
 * @since 2022-11-21
 */
public interface ISysOperLogService extends IService<SysOperLog> {


    /**
     * 记录请求日志
     */
    void log(int code, String title);
    /**
     * 检测与校验请求频次
     */
    void checkReqFrequency(int code, int timeLimit, DateUnit timeUnit, int maxReqCount);
}
